package com.warrior.superdata.annotation;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.lang.annotation.*;

/**
 * @Description:
 * @ClassName: com.warrior.wisdom.machine.room.annotation.MysqlCheckInject.java
 * @date: 2021/12/28 11:21
 * @author xujian
 */
@Documented
@Inherited
@Target(value = {ElementType.METHOD, ElementType.TYPE, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface MysqlCheckInject {

    //字段唯一值判断
    String uniqueField() default "";

    //字段唯一值条件
    String[] conditionUniqueField() default {};

    //方法类型 add update
    String method() default "add";

    Class mapper() default BaseMapper.class;

}
